package cn.shiro.shiroservice.common.constant;

import cn.shiro.shiroservice.auth.service.impl.TokenCacheManger;

/**
 * &#064;Time 2023 十二月 星期四 15:08
 *
 * @author ShangGuan
 */
public interface ManaPoint {

    String REQUEST_TOKEN = "Token";

    String DATABASE_URL_SUFFIX="useUnicode=true&characterEncoding=UTF-8&useSSL=false";

    String MYSQL_PORT="3306";

    /**
     * 访问令牌
     */
    String TOKEN_ACCOUNT = "token:account";
    String TOKEN_SESSION_ID = "token:session:id";



    /**
     * 刷新令牌
     */
    String FLUSHED_TOKEN = "rlushed:token";
    /**
     * 帐户令牌过期时间
     */
    Integer ACCOUNT_TOKEN_EXPIRATION_TIME = 18000 * 1000;

    /**
     * 刷新令牌过期时间
     */
    Integer REFRESH_TOKEN_EXPIRATION_TIME=36000 * 1000;


    String CACHE = ":cache";

    String CLASS_CACHE = TokenCacheManger.class+ ManaPoint.CLASS_CACHE;

}
